{cm var="list" vid="'.$param['id'].'" pid="'.$param['pid'].'" sid="'.$param['sid'].'" page="true" limit="'.$GLOBALS['config']['user']['sys']['user_cmnum'].'" order="cm_addtime desc"}{/cm}
<div class="comment-focus">
<ul class="ui-comment" id="datalist">
{notempty name="list"}
{volist name="list" id="zanpian"}
{php}
$lou=$list->total()-(($list->currentPage()-1)*$list->listRows())-$i+1;{/php}
<li id="li{$zanpian['cm_id']}" class="comment-item fn-clear">
<div class="comment-avatar"><a href="{:zanpian_user_url('user/home/index',$zanpian)}" target="_blank"><img src="{:zanpian_avatar_url($zanpian)}"></a><div class="comment-lou">{$lou}楼</div></div>
<div class="comment-post">
<div class="comment-post-arrow"></div>
<div class="comment-post-cnt">
<div class="comment-body">
<div class="comment-top"><span class="user"><a href="{:zanpian_user_url('user/home/index',$zanpian)}" target="_blank">{$zanpian["user_nickname"]}</a></span>:<span class="time">{$zanpian['cm_addtime']|time_format='Y-m-d H:i:s',1}</span></div>
<div class="comment-text">{:get_emots(strip_tags($zanpian['cm_content']))}</div>
<div class="comment-assist fn-clear">

<p class="fn-left"><span class="digg"><a href="javascript:void(0)" class="sup" data-id="{$zanpian['cm_id']}" data-type="up" data-url="{:zanpian_user_url('home/ajax/digg',array('id'=>$zanpian['cm_id'],'type'=>'up'))}">支持(<strong>{$zanpian['cm_up']}</strong>)</a></span><span class="digg"><a href="javascript:void(0)" class="opp" data-id="{$zanpian['cm_id']}" data-type="down" data-url="{:zanpian_user_url('home/ajax/digg',array('id'=>$zanpian['cm_id'],'type'=>'down'))}">反对(<strong>{$zanpian['cm_down']}</strong>)</a></span></p>

<p class="fn-right"><a href="javascript:void(0)" data-id="{$zanpian['cm_id']}" data-pid="{$zanpian['cm_pid']}" data-vid="{$zanpian['cm_vid']}" data-sid="{$zanpian['cm_sid']}" data-tuid="{$zanpian['cm_uid']}" class="reply">回复</a></p>
</div>
<div id="rep{$zanpian["cm_id"]}" class="comms"></div>
</div>
{cm pid="'.$zanpian['cm_id'].'" sid="'.$zanpian['cm_sid'].'" order="cm_addtime desc" id="sub" key="kkk"}
{php}$sublou=count($__LIST__)-$kkk+1;{/php}

<div class="comment-sub">
<div class="comment-top"><span class="sublou">{$sublou}.楼</span>
<span class="user"><a href="{:zanpian_user_url('user/home/index',$sub)}" target="_blank">{$sub["user_nickname"]}</a></span> : 
{notempty name="sub.cm_tid"}回复了 <a href="{:zanpian_user_url('user/home/index',array('user_id'=>$sub.cm_tuid),true,true)}" target='_blank'>{:get_user_info($sub['cm_tuid'],'user_id','user_nickname')}</a>{/notempty}
<span class="time">{$sub['cm_addtime']|time_format='Y-m-d H:i:s',1}</span></div>
<div class="comment-text">{:get_emots(strip_tags($sub["cm_content"]))}</div>
<div class="comment-assist fn-clear">
<p class="fn-left"><span class="digg"><a href="javascript:void(0)" class="sup" data-id="{$zanpian['cm_id']}" data-type="up" data-url="{:zanpian_user_url('home/ajax/digg',array('id'=>$sub['cm_id'],'type'=>'up'))}">支持(<strong>{$sub["cm_up"]}</strong>)</a></span><span class="digg"><a href="javascript:void(0)" class="opp" data-id="{$zanpian['cm_id']}" data-type="down" data-url="{:zanpian_user_url('home/ajax/digg',array('id'=>$sub['cm_id'],'type'=>'down'))}">反对(<strong>{$sub['cm_down']}</strong>)</a></span></p>
<p class="fn-right"><a href="javascript:void(0)" data-id="{$sub['cm_id']}" data-pid="{$zanpian['cm_id']}" data-vid="{$zanpian['cm_vid']}" data-sid="{$zanpian['cm_sid']}" data-tuid="{$sub['cm_uid']}" class="reply">回复</a></p>
</div>
<div id="rep{$sub['cm_id']}" class="comms"></div>
</div>
{/cm}
</div>
<div class="fn-clear"></div>
</div>
</li>
{/volist}
{else/}
<li class="kong">当前没有评论，赶紧抢个沙发！</li>
{/notempty}
    </ul>
  </div>
  <div class="box-page clearfix ajax-page" id="long-page">
    <ul id="pages">
    {$list->render()}
    </ul>
  </div>